//
//  YTHotCommFooterView.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/30.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTHotCommFooterView.h"

@implementation YTHotCommFooterView

+ (instancetype)footView
{
    UINib *nib = [UINib nibWithNibName:@"YTHotCommFooterView" bundle:nil];
    YTHotCommFooterView *view = [nib instantiateWithOwner:nil options:nil][0];
    
    return view;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewClick:)];
    
    [self addGestureRecognizer:tap];
}

- (void)viewClick:(UIGestureRecognizer *)g
{
    NSAssert(self.MoreHotCommentClick != nil, @"MoreHotCommentClick 不能为nil");
    
    self.MoreHotCommentClick();
}
@end
